<?php
/* @var $this BlacklistController */
/* @var $model Blacklist */

$this->breadcrumbs=array(
	'[黑名单]管理'=>array('admin'),
	'添加[黑名单]',
);
//设置页面标题
$this->pageTitle=Yii::app()->name.' - 添加[黑名单]';
$this->contentTitle='添加[黑名单]';
?>
<!--表单内容-->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'blacklist-form',
	'enableAjaxValidation'=>false,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        ),
    'htmlOptions'=>array('class'=>'ajax_form'),
)); ?>
<table cellspacing="1" class="myform">
	<tr>
		<td align="right"><?php echo $form->labelEx($model,'username'); ?></td>
		<td>
			<?php echo $form->textField($model,'username',array('size'=>5,'maxlength'=>5,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'username'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'sex'); ?></td>
		<td>
                        <?php echo $form->dropDownList($model,'sex',array('男'=>'男','女'=>'女'),
                                    array()); ?> 
			<?php echo $form->error($model,'sex'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'phone'); ?></td>
		<td>
			<?php echo $form->textField($model,'phone',array('size'=>11,'maxlength'=>11,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'phone'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'company'); ?></td>
		<td>
			<?php echo $form->textField($model,'company',array('size'=>60,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'company'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'code'); ?></td>
		<td>
			<?php echo $form->textField($model,'code',array('size'=>20,'maxlength'=>20,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'code'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'province'); ?></td>
		<td>
			<?php echo $form->textField($model,'province',array('size'=>20,'maxlength'=>20,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'province'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'city'); ?></td>
		<td>
			<?php echo $form->textField($model,'city',array('size'=>20,'maxlength'=>20,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'city'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'area'); ?></td>
		<td>
			<?php echo $form->textField($model,'area',array('size'=>20,'maxlength'=>20,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'area'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'address'); ?></td>
		<td>
			<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'address'); ?>
		</td>
	</tr>

	<tr>
        <td align="right"></td>
        <td>
            <input class="but" type="submit" name="yt0" value="提 交" />        </td>
    </tr>
</table>
<?php $this->endWidget(); ?>
<!--表单内容-->
